<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hello Vue</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>

<body>
    <div id="app">
        <button-counter></button-counter>
        <button v-on:click="btnAction">点击</button>
    </div>
   
    <script type="text/javascript">
        const app = Vue.createApp({
            data() {
                return {
                    count: 0
                }
            },
            methods:{
                btnAction(){
                    console.log(123);
                }
            },
        })
        // 定义一个叫button-counter的组件
      
            
            
        
        app.mount('#app')
    </script>
</body>

</html>